package com.dbqn.zhao.service.impl;

import com.dbqn.zhao.entiy.User;
import com.dbqn.zhao.service.BaseService;

import java.util.List;

public class Select2IMpl implements BaseService {


    @Override
    public List excute(List list) {


        if(list.size()==0){
            System.out.println("没有常用联系人！");
            return null;
        }


        System.out.println("*****常用联系人******");
        System.out.println("编号\t姓名\t手机\t地址");

        for (int i = 0; i <list.size() ; i++) {

            User user=(User) list.get(i);
            System.out.println((i+1)+user.getRecipients());

        }

        return null;
    }



}
